/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Node Node for DoublyLinkedList Author: Kyle Van Wie Version v1 v1 Initial
 * Version
 */
public class Node<E> {
	Node<E> prev;
	Node<E> next;
	E element;

	public Node(E Obj) {
		element = Obj;
		prev = this;
		next = this;
	}

	public void setNext(Node<E> Obj) {
		next = Obj;
	}

	public void setPrev(Node<E> Obj) {
		prev = Obj;
	}

	public E getElement() {
		return element;
	}

	public Node<E> getPrev() {
		return prev;
	}

	public Node<E> getNext() {
		return next;
	}
}
